<%@ Page Title="" Language="VB" MasterPageFile="~/MainLayout.master" AutoEventWireup="false"
    CodeFile="propertyentry.aspx.vb" Inherits="propertyentry" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <h1>New Property Entry</h1>
    <hr />
    <asp:UpdatePanel ID="udpMessage" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <div runat="server" id="divError" class="msg-box-error" visible="false">

                <span class="title">Error</span><br />
                <asp:Label ID="lblMsgError" runat="server" Text="ERROR" />
            </div>
            <div runat="server" id="divSuccessful" class="msg-box-success" visible="false">

                <span class="title">Successful</span><br />
                <asp:Label ID="lblMsgSuccessful" runat="server" Text="Success" />

            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="upgContentGeneral" runat="server" AssociatedUpdatePanelID="upPropertyEntry">
        <ProgressTemplate>
            <div style="top: 0px; position: fixed; width: 100%; text-align: center">
                <span style="background-color: Yellow; font-weight: bold">Loading ...</span>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>

    <p>
        <%-- <cc1:CalendarExtender ID="CESRCreateDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtSRCreateDate"
                                    Enabled="True">
                                </cc1:CalendarExtender>--%>
    </p>
    <div>



        <asp:Panel ID="pnlPreEntry" runat="server">
            <div class="form-entry-container">
                <table cellpadding="5" cellspacing="5" class="form-entry-table">
                    <tr>
                        <th scope="row">List Type
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlListType" runat="server" Width="300px">
                                <asp:ListItem Text="-SELECT-" Value="" Selected="True" />
                                <asp:ListItem Text="Sale" Value="1" />
                                <asp:ListItem Text="Rent" Value="2" />
                                <%--<asp:ListItem Text="Sale & Rent" Value="3" /> --%>
                            </asp:DropDownList>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvddlListType" ControlToValidate="ddlListType"
                                SetFocusOnError="true" runat="server" ValidationGroup="PrePropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </td>
                    </tr>
                    <tr style="display: blcok">
                        <th scope="row">Country
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlCountry" runat="server" Width="300px" AutoPostBack="true">
                            </asp:DropDownList>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvddlCountry" ControlToValidate="ddlCountry"
                                SetFocusOnError="true" runat="server" ValidationGroup="PrePropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">State
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlState" runat="server" Width="300px" AutoPostBack="true">
                            </asp:DropDownList>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvddlState" ControlToValidate="ddlState"
                                SetFocusOnError="true" runat="server" ValidationGroup="PrePropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Location
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlLocation" runat="server" Width="300px" AutoPostBack="true">
                            </asp:DropDownList>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvddlLocation" ControlToValidate="ddlLocation"
                                SetFocusOnError="true" runat="server" ValidationGroup="PrePropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Road Name
                        </th>
                        <td>
                            <asp:TextBox ID="txtRoadName" runat="server" Width="300px" Style="vertical-align: bottom;" />
                            <asp:ImageButton ID="btnRoadNameSearch" runat="server" Text="Search" ImageUrl="~/images/style01/Btn-manify.png" Width="25" Height="25" />
                            <asp:Label ID="lblReqRoadName" runat="server" Text="*" Style="color: Red" />
                            <asp:RequiredFieldValidator ID="rfvtxtRoadName" ControlToValidate="txtRoadName"
                                SetFocusOnError="true" runat="server" ValidationGroup="PrePropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Project Name
                        </th>
                        <td>
                            <asp:TextBox ID="txtProjectName" runat="server" Width="300px" Style="vertical-align: bottom;" />
                            <asp:ImageButton ID="btnProjectNameSearch" runat="server" Text="Search" ImageUrl="~/images/style01/Btn-manify.png" Width="25" Height="25" />
                            <asp:CheckBox ID="ProjectCB" runat="server" Text="Land" />
                            <asp:Label ID="lblReqProjectName" runat="server" Style="color: Red" Text="*"
                                Visible="false" />
                        </td>
                    </tr>
                    <tr>


                        <th scope="row">Unit Number
                        </th>
                        <td>
                            <asp:TextBox ID="txtUnitNumber" runat="server" Width="300px" />
                            <asp:Label ID="lblUnitNumber" runat="server" Font-Size="12px" />
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvtxtUnitNumber" ControlToValidate="txtUnitNumber"
                                SetFocusOnError="true" runat="server" ValidationGroup="PrePropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </td>
                </table>
                <table width="100%" style="margin-left: 0px; margin-bottom: 25px;">
                    <tr>
                        <td>
                            <div class="General-info-title-line"></div>
                        </td>
                        <td style="width: 220px;">&nbsp;<asp:Button ID="btnSubmitPreEntry" runat="server" Text="Submit" ValidationGroup="PrePropertyEntry" CssClass="search-btn" Width="80" />
                            &nbsp;<asp:Button ID="btnCancelPreEntry" runat="server" Text="Cancel" CssClass="search-btn" Width="60" />
                            &nbsp;<asp:Button ID="btnUpdatePreEntry" runat="server" Text="Update"
                                CssClass="search-btn" Width="60" Visible="False" />
                        </td>
                        <td style="width: 10px">
                            <div class="General-info-title-line"></div>
                        </td>
                    </tr>
                </table>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlEntry" runat="server">


            <div id="divContentGeneral" class="form-entry-container" style="width: auto;">
                <table width="100%">
                    <tr>
                        <td class="General-info-title" style="width: 150px;">
                            <h3>General Informations</h3>
                        </td>
                        <td>
                            <div class="General-info-title-line"></div>
                        </td>
                    </tr>
                </table>
                <table cellpadding="5" cellspacing="5" class="form-entry-table">
                    <tr>
                        <th scope="row">Address
                                <asp:ImageButton ID="ImageButtonEditAddress" runat="server" Height="16px"
                                    ImageUrl="~/images/icon01/icon-edit.png" Width="17px" />
                        </th>
                        <td>
                            <asp:Label ID="lblAddress" runat="server" Font-Size="12px" />
                        </td>
                    </tr>
                    <tr id="trProject" runat="server">
                        <th scope="row">Project Name
                        </th>
                        <td>
                            <asp:Label ID="lblProjectName" runat="server" Width="300px" Font-Size="12px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Property Type
                        </th>
                        <td>
                            <asp:TextBox ID="txtPropertyType" runat="server" Width="300px" Style="vertical-align: bottom;" />
                            <asp:ImageButton ID="btnPropertyTypeSearch" runat="server" Text="Search" ImageUrl="~/images/style01/Btn-manify.png" Width="25" Height="25" />
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvtxtPropertyType" ControlToValidate="txtPropertyType"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Project Remark
                        </th>
                        <td>
                            <asp:TextBox ID="txtProjectRemark" runat="server" Width="750px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Developer
                        </th>
                        <td>
                            <asp:TextBox ID="txtDeveloper" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">LA(SQ FT)
                        </th>
                        <td>
                            <table cellpadding="0" cellspacing="0" class="form-multi-entry-table">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtLAWidth" runat="server" Width="180px" onkeyup="CalculateLA()" onkeypress="return isNumberKey(event)"
                                            onpaste="return false;" Text="0" />
                                    </td>
                                    <td>X
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtLALength" runat="server" Width="180px" onkeyup="CalculateLA()" onkeypress="return isNumberKey(event)"
                                            onpaste="return false;" Text="0" />
                                    </td>
                                    <td>=
                                    </td>
                                    <td>
                                        <%--edited by minginn @ 4/4/11 - remove the readonly to allow user just key in the total--%>
                                        <asp:TextBox ID="txtLASF" runat="server" Width="180px" onkeypress="return isNumberKey(event)" onkeyup="CalculateACRE()"
                                            onpaste="return false;" Text="0" />
                                        <span style="color: Red">*</span>
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtACRE" runat="server" Width="180px" onkeypress="return isNumberKey(event)"
                                            onpaste="return false;" Text="0" ReadOnly="True" />(ACRE)
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RequiredFieldValidator ID="rfvtxtLAWidth" ControlToValidate="txtLAWidth" SetFocusOnError="true"
                                            runat="server" ValidationGroup="PropertyEntry" ErrorMessage="Required" ForeColor="Red"
                                            Display="Dynamic" Width="180px" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="rfvtxtLALength" ControlToValidate="txtLALength" SetFocusOnError="true"
                                            runat="server" ValidationGroup="PropertyEntry" ErrorMessage="Required" ForeColor="Red"
                                            Display="Dynamic" Width="180px" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="rfvtxtLASF" ControlToValidate="txtLASF" SetFocusOnError="true"
                                            runat="server" ValidationGroup="PropertyEntry" ErrorMessage="Required" ForeColor="Red"
                                            Display="Dynamic" Width="180px" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">BU(SQ FT)
                        </th>
                        <td>
                            <table cellpadding="0" cellspacing="0" class="form-multi-entry-table">
                                <tr>
                                    <td>
                                        <asp:TextBox ID="txtBUWidth" runat="server" Width="180px" onkeyup="CalculateBU()" onkeypress="return isNumberKey(event)"
                                            onpaste="return false;" Text="0" />
                                    </td>
                                    <td>X
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtBULength" runat="server" Width="180px" onkeyup="CalculateBU()" onkeypress="return isNumberKey(event)"
                                            onpaste="return false;" Text="0" />
                                    </td>
                                    <td>=
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtBUSF" runat="server" Width="180px" onkeypress="return isNumberKey(event)"
                                            onpaste="return false;" Text="0" onkeyup="calculateBUAmt()" />
                                        <span style="color: Red">*</span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <asp:RequiredFieldValidator ID="rfvtxtBUWidth" ControlToValidate="txtBUWidth" SetFocusOnError="true"
                                            runat="server" ValidationGroup="PropertyEntry" ErrorMessage="Required" ForeColor="Red"
                                            Display="Dynamic" Width="180px" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="rfvtxtBULength" ControlToValidate="txtBULength" SetFocusOnError="true"
                                            runat="server" ValidationGroup="PropertyEntry" ErrorMessage="Required" ForeColor="Red"
                                            Display="Dynamic" Width="180px" />
                                    </td>
                                    <td></td>
                                    <td>
                                        <asp:RequiredFieldValidator ID="rfvtxtBUSF" ControlToValidate="txtBUSF" SetFocusOnError="true"
                                            runat="server" ValidationGroup="PropertyEntry" ErrorMessage="Required" ForeColor="Red"
                                            Display="Dynamic" Width="180px" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Tenure
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlTenure" runat="server" Width="300px" onChange="checkTenure()">
                                <asp:ListItem Text="-SELECT-" Value="0" Selected="True" />
                                <asp:ListItem Text="Freehold" Value="1" />
                                <asp:ListItem Text="Leasehold" Value="2" />
                            </asp:DropDownList>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvddlTenure" ControlToValidate="ddlTenure" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                            <asp:TextBox ID="txtListholdExpired" runat="server" Width="300px" Style="display: none" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Access
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlAccess" runat="server" Width="300px">
                                <asp:ListItem Text="-SELECT-" Value="0" Selected="True" />
                                <asp:ListItem Text="Direct" Value="1" />
                                <asp:ListItem Text="Friend" Value="2" />
                                <asp:ListItem Text="Key in office" Value="3" />
                                <asp:ListItem Text="Tenant" Value="4" />
                                <asp:ListItem Text="Owner" Value="5" />
                                <asp:ListItem Text="Representative" Value="6" />
                                <asp:ListItem Text="Relative" Value="7" />
                                <asp:ListItem Text="Others" Value="8" />
                            </asp:DropDownList>
                            <asp:TextBox ID="txtAccessRemark" runat="server" Width="300px" Style="display: none" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Condition
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlCondition" runat="server" Width="300px">
                                <asp:ListItem Text="-SELECT-" Value="0" Selected="True" />
                                <asp:ListItem Text="Vacant" Value="1" />
                                <asp:ListItem Text="Tenanted" Value="2" />
                                <asp:ListItem Text="Owner Occupied" Value="3" />
                                <asp:ListItem Text="Occupied" Value="4" />
                                <asp:ListItem Text="Under Construction" Value="5" />
                                <asp:ListItem Text="Others" Value="6" />
                            </asp:DropDownList>
                            <asp:TextBox ID="txtConditionRemark" runat="server" Width="300px" Style="display: none" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Key in office
                        </th>
                        <td>
                            <asp:CheckBox ID="chkKeyInOffice" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Facing
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlFacing" runat="server" Width="300px">
                                <asp:ListItem Text="-SELECT-" Value="0" Selected="True" />
                                <asp:ListItem Text="North" Value="1" />
                                <asp:ListItem Text="North East" Value="2" />
                                <asp:ListItem Text="East" Value="3" />
                                <asp:ListItem Text="South East" Value="4" />
                                <asp:ListItem Text="South" Value="5" />
                                <asp:ListItem Text="South West" Value="6" />
                                <asp:ListItem Text="West" Value="7" />
                                <asp:ListItem Text="North West" Value="8" />
                                <asp:ListItem Text="N/A" Value="9" />
                            </asp:DropDownList>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Room
                        </th>
                        <td>
                            <asp:TextBox ID="txtRoom" runat="server" Width="300px" onkeypress="return isNumberKeyOnly(event)"
                                onpaste="return false;" />
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvtxtRoom" ControlToValidate="txtRoom" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Bathroom
                        </th>
                        <td>
                            <asp:TextBox ID="txtBathroom" runat="server" Width="300px" onkeypress="return isNumberKeyOnly(event)"
                                onpaste="return false;" />
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvtxtBathroom" ControlToValidate="txtBathRoom" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Best Buy
                        </th>
                        <td>
                            <asp:CheckBox ID="chkBestBuy" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Authorize Sale Rent
                        </th>
                        <td>
                            <asp:CheckBox ID="chkAuthorizeSaleRent" runat="server" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Prop. Remark
                        </th>
                        <td>
                            <asp:TextBox ID="txtPropertyDesc" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Floor
                        </th>
                        <td>
                            <asp:TextBox ID="txtFloor" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Furnished
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlFurnished" runat="server" Width="300px">
                                <asp:ListItem Text="-SELECT-" Value="0" Selected="True" />
                                <asp:ListItem Text="Furnished" Value="1" />
                                <asp:ListItem Text="Not Furnished" Value="2" />
                                <asp:ListItem Text="Partially Furnished" Value="3" />
                            </asp:DropDownList>
                            <asp:TextBox ID="txtFurnished" runat="server" />
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvddlFurnished" ControlToValidate="ddlFurnished"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Renovated
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlRenovated" runat="server" Width="300px">
                                <asp:ListItem Text="-SELECT-" Value="0" Selected="True" />
                                <asp:ListItem Text="Renovated" Value="1" />
                                <asp:ListItem Text="Not Renovated" Value="2" />
                                <asp:ListItem Text="Partially Renovated" Value="3" />
                            </asp:DropDownList>
                            <asp:TextBox ID="txtRenovated" runat="server" />
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvddlRenovated" ControlToValidate="ddlRenovated"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Production
                        </th>
                        <td>
                            <asp:TextBox ID="txtProduction1" runat="server" Width="180px" onkeypress="return isNumberKey(event)"
                                onpaste="return false;" />X
                                <asp:TextBox ID="txtProduction2" runat="server" Width="180px" onkeypress="return isNumberKey(event)"
                                    onpaste="return false;" />=
                                <asp:TextBox ID="txtProduction3" runat="server" Width="180px" onkeypress="return isNumberKey(event)"
                                    onpaste="return false;" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Admin
                        </th>
                        <td>
                            <asp:TextBox ID="txtAdmin1" runat="server" Width="180px" onkeypress="return isNumberKey(event)"
                                onpaste="return false;" />X
                                <asp:TextBox ID="txtAdmin2" runat="server" Width="180px" onkeypress="return isNumberKey(event)"
                                    onpaste="return false;" />=
                                <asp:TextBox ID="txtadmin3" runat="server" Width="180px" onkeypress="return isNumberKey(event)"
                                    onpaste="return false;" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Floor Load
                        </th>
                        <td>
                            <asp:TextBox ID="txtFloorLoad" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Ceiling Height
                        </th>
                        <td>
                            <asp:TextBox ID="txtCeiling" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Keywords
                        </th>
                        <td>
                            <asp:TextBox ID="txtPhase" runat="server" Width="300px" MaxLength="49" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Signboard
                        </th>
                        <td>
                            <asp:CheckBox ID="chkSignboard" runat="server" onclick="CheckSignboard();" />
                            <asp:TextBox ID="txtSignboardWhere" runat="server" Width="300px" Style="display: none" />
                            <asp:TextBox ID="txtSignboardDate" runat="server" Width="180px" Style="display: none" />
                            <cc1:CalendarExtender ID="CESignboard" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtSignboardDate"
                                Enabled="True">
                            </cc1:CalendarExtender>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Agent Feedback(Sale)
                        </th>
                        <td>
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:DropDownList ID="AgentFeedbackDDList" runat="server">
                                            <asp:ListItem Value="0">Pending</asp:ListItem>
                                            <asp:ListItem Value="1">Sold By Us</asp:ListItem>
                                            <asp:ListItem Value="2">Not For Sale</asp:ListItem>
                                            <asp:ListItem Value="3">Sold By Owner</asp:ListItem>
                                            <asp:ListItem Value="7" Selected="True">Normal</asp:ListItem>
                                            <asp:ListItem Value="8">Hold</asp:ListItem>
                                            <asp:ListItem Value="10">For Record Only</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:CheckBox ID="chkPendingStatus" runat="server" onClick="CheckPending('sale')" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPendingWho" runat="server" Width="300px" Style="display: none" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtPendingWhen" runat="server" Width="180px" Style="display: none" />
                                        <cc1:CalendarExtender ID="CEPendingWhen" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtPendingWhen"
                                            Enabled="True">
                                        </cc1:CalendarExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <asp:TextBox ID="txtPendingWhy" runat="server" Width="450px" Style="display: none" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Agent Feedback(Rent)
                        </th>
                        <td>
                            <table cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <asp:DropDownList ID="AgentFeedbackRentDDList" runat="server">
                                            <asp:ListItem Value="0">Pending</asp:ListItem>
                                            <asp:ListItem Value="4">Rented By Us</asp:ListItem>
                                            <asp:ListItem Value="5">Not For Rent</asp:ListItem>
                                            <asp:ListItem Value="6">Rented By Owner</asp:ListItem>
                                            <asp:ListItem Value="7" Selected="True">Normal</asp:ListItem>
                                            <asp:ListItem Value="8">Hold</asp:ListItem>
                                            <asp:ListItem Value="10">For Record Only</asp:ListItem>
                                        </asp:DropDownList>
                                        <asp:CheckBox ID="chkRentPendingStatus" runat="server" onClick="CheckPending('rent')" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtRentPendingWho" runat="server" Width="300px" Style="display: none" />
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtRentPendingWhen" runat="server" Width="180px" Style="display: none" />
                                        <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtRentPendingWhen"
                                            Enabled="True">
                                        </cc1:CalendarExtender>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <asp:TextBox ID="txtRentPendingWhy" runat="server" Width="450px" Style="display: none" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Exclusive Status
                        </th>
                        <td>
                            <asp:CheckBox ID="chkExclusiveStatus" runat="server" onClick="checkExclusive()" />
                            <asp:TextBox ID="txtExclusiveWho" runat="server" Width="300px" Style="display: none" />
                            <asp:TextBox ID="txtExclusiveWhen" runat="server" Width="180px" Style="display: none" />
                            <cc1:CalendarExtender ID="CEExclusiveWhen" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtExclusiveWhen"
                                Enabled="True">
                            </cc1:CalendarExtender>
                            <asp:TextBox ID="txtExclusiveEndDate" runat="server" Width="180px" Style="display: none" />
                            <cc1:CalendarExtender ID="CEExclusiveEndDate" runat="server" Format="dd-MMM-yyyy"
                                TargetControlID="txtExclusiveEndDate" Enabled="True">
                            </cc1:CalendarExtender>
                        </td>
                    </tr>
                </table>
            </div>



            <div id="divContentListing" class="form-entry-container" style="width: auto;">
                <table width="100%">
                    <tr>
                        <td class="General-info-title" style="width: 150px;">
                            <h3>Listing Type<span style="color: Red;">*</span></h3>
                        </td>
                        <td>
                            <div class="General-info-title-line"></div>
                        </td>
                    </tr>
                </table>
                <a name="#Lister"></a>
                <table cellpadding="5" cellspacing="0" class="Form-datadisplay-table">
                    <thead>
                        <tr id="sTitle" runat="server">
                            <th scope="col">Type
                            </th>
                            <th scope="col">Sales(RM)
                            </th>
                            <th scope="col">PSF
                            </th>
                            <th scope="col">ASK(RM)
                            </th>
                            <th scope="col">PSF
                            </th>
                            <th scope="col">Date Created
                            </th>
                        </tr>
                    </thead>
                    <tr id="SR" runat="server">
                        <td>
                            <asp:CheckBox ID="chkSR" runat="server" Text="SR" onclick="checkListType(this, 'SR')" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSRAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SR','Amt',event)" ToolTip="minimum:0,maximum:999999999"/>
                            <asp:RequiredFieldValidator ID="rfvtxtSRAmt" ControlToValidate="txtSRAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSRPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SR','PSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSRPSF" ControlToValidate="txtSRPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSRAskAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SR','AskAmt')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSRAskAmt" ControlToValidate="txtSRAskAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSRAskPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SR','AskPSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSRAskPSF" ControlToValidate="txtSRAskPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSRCreateDate" runat="server" ReadOnly="true" CssClass="Form-datadisplay-input" />
                            <%-- <cc1:CalendarExtender ID="CESRCreateDate" runat="server" Format="dd-MMM-yyyy" TargetControlID="txtSRCreateDate"
                                    Enabled="True">
                                </cc1:CalendarExtender>--%>
                            <span style="color: Red">
                                <asp:Label ID="lblSRRequired" runat="server" Text="*" Style="display: none" /></span>
                            <asp:RequiredFieldValidator ID="rfvtxtSRCreateDate" ControlToValidate="txtSRCreateDate"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <tr id="SC" runat="server">
                        <td>
                            <asp:CheckBox ID="chkSC" runat="server" Text="SC" onclick="checkListType(this, 'SC')" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSCAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SC','Amt')" ToolTip="minimum:0,maximum:999999999" />
                            <asp:RequiredFieldValidator ID="rfvtxtSCAmt" ControlToValidate="txtSCAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSCPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SC','PSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSCPSF" ControlToValidate="txtSCPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSCAskAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SC','AskAmt')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSCAskAmt" ControlToValidate="txtSCAskAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSCAskPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SC','AskPSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSCAskPSF" ControlToValidate="txtSCAskPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSCCreateDate" runat="server" ReadOnly="true" CssClass="Form-datadisplay-input" />
                            <span style="color: Red">
                                <asp:Label ID="lblSCRequired" runat="server" Text="*" Style="display: none" /></span>
                            <asp:RequiredFieldValidator ID="rfvtxtSCCreateDate" ControlToValidate="txtSCCreateDate"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <tr id="SL" runat="server">
                        <td>
                            <asp:CheckBox ID="chkSL" runat="server" Text="SL" onclick="checkListType(this, 'SL')" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSLAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SL','Amt')" ToolTip="minimum:0,maximum:999999999" />
                            <asp:RequiredFieldValidator ID="rfvtxtSLAmt" ControlToValidate="txtSLAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSLPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SL','PSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSLPSF" ControlToValidate="txtSLPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSLAskAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SL','AskAmt')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSLAskAmt" ControlToValidate="txtSLAskAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSLAskPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SL','AskPSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSLAskPSF" ControlToValidate="txtSLAskPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSLCreateDate" runat="server" ReadOnly="true" CssClass="Form-datadisplay-input" />
                            <span style="color: Red">
                                <asp:Label ID="lblSLRequired" runat="server" Text="*" Style="display: none" /></span>
                            <asp:RequiredFieldValidator ID="rfvtxtSLCreateDate" ControlToValidate="txtSLCreateDate"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <tr id="SI" runat="server">
                        <td>
                            <asp:CheckBox ID="chkSI" runat="server" Text="SI" onclick="checkListType(this, 'SI')" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSIAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SI','Amt')" ToolTip="minimum:0,maximum:999999999" />
                            <asp:RequiredFieldValidator ID="rfvtxtSIAmt" ControlToValidate="txtSIAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSIPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SI','PSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSIPSF" ControlToValidate="txtSIPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSIAskAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SI','AskAmt')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSIAskAmt" ControlToValidate="txtSIAskAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSIAskPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('SI','AskPSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtSIAskPSF" ControlToValidate="txtSIAskPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtSICreateDate" runat="server" ReadOnly="true" CssClass="Form-datadisplay-input" />
                            <span style="color: Red">
                                <asp:Label ID="lblSIRequired" runat="server" Text="*" Style="display: none" /></span>
                            <asp:RequiredFieldValidator ID="rfvtxtSICreateDate" ControlToValidate="txtSICreateDate"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <thead>
                        <tr id="RTitle" runat="server">

                            <th scope="col">Type
                            </th>
                            <th scope="col">Rental(RM)
                            </th>
                            <th scope="col">PSF
                            </th>
                            <th scope="col">ASK(RM)
                            </th>
                            <th scope="col">PSF
                            </th>
                            <th scope="col">Date Created
                            </th>
                        </tr>
                    </thead>
                    <tr id="RR" runat="server">
                        <td>
                            <asp:CheckBox ID="chkRR" runat="server" Text="RR" onclick="checkListType(this, 'RR')" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRRAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RR','Amt')" ToolTip="minimum:0,maximum:999999999" />
                            <asp:RequiredFieldValidator ID="rfvtxtRRAmt" ControlToValidate="txtRRAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRRPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RR','PSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRRPSF" ControlToValidate="txtRRPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRRAskAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RR','AskAmt')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRRAskAmt" ControlToValidate="txtRRAskAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRRAskPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RR','AskPSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRRAskPSF" ControlToValidate="txtRRAskPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRRCreateDate" runat="server" ReadOnly="true" CssClass="Form-datadisplay-input" />
                            <span style="color: Red">
                                <asp:Label ID="lblRRRequired" runat="server" Text="*" Style="display: none" /></span>
                            <asp:RequiredFieldValidator ID="rfvtxtRRCreateDate" ControlToValidate="txtRRCreateDate"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <tr id="RC" runat="server">
                        <td>
                            <asp:CheckBox ID="chkRC" runat="server" Text="RC" onclick="checkListType(this, 'RC')" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRCAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RC','Amt')" ToolTip="minimum:0,maximum:999999999" />
                            <asp:RequiredFieldValidator ID="rfvtxtRCAmt" ControlToValidate="txtRCAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRCPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RC','PSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRCPSF" ControlToValidate="txtRCPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRCAskAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RC','AskAmt')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRCAskAmt" ControlToValidate="txtRCAskAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRCAskPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RC','AskPSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRCAskPSF" ControlToValidate="txtRCAskPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRCCreateDate" runat="server" ReadOnly="true" CssClass="Form-datadisplay-input" />
                            <span style="color: Red">
                                <asp:Label ID="lblRCRequired" runat="server" Text="*" Style="display: none" /></span>
                            <asp:RequiredFieldValidator ID="rfvtxtRCCreateDate" ControlToValidate="txtRCCreateDate"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <tr id="RL" runat="server">
                        <td>
                            <asp:CheckBox ID="chkRL" runat="server" Text="RL" onclick="checkListType(this, 'RL')" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRLAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RL','Amt')" ToolTip="minimum:0,maximum:999999999" />
                            <asp:RequiredFieldValidator ID="rfvtxtRLAmt" ControlToValidate="txtRLAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRLPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RL','PSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRLPSF" ControlToValidate="txtRLPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRLAskAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RL','AskAmt')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRLAskAmt" ControlToValidate="txtRLAskAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRLAskPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RL','AskPSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRLAskPSF" ControlToValidate="txtRLAskPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRLCreateDate" runat="server" ReadOnly="true" CssClass="Form-datadisplay-input" />
                            <span style="color: Red">
                                <asp:Label ID="lblRLRequired" runat="server" Text="*" Style="display: none" /></span>
                            <asp:RequiredFieldValidator ID="rfvtxtRLCreateDate" ControlToValidate="txtRLCreateDate"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <tr id="RI" runat="server">
                        <td>
                            <asp:CheckBox ID="chkRI" runat="server" Text="RI" onclick="checkListType(this, 'RI')" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRIAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RI','Amt')" ToolTip="minimum:0,maximum:999999999" />
                            <asp:RequiredFieldValidator ID="rfvtxtRIAmt" ControlToValidate="txtRIAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRIPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RI','PSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRIPSF" ControlToValidate="txtRIPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRIAskAmt" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RI','AskAmt')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRIAskAmt" ControlToValidate="txtRIAskAmt" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRIAskPSF" runat="server" onkeypress="return isNumberKey(event)" CssClass="Form-datadisplay-input"
                                onpaste="return false;" onkeyup="calculatePSF('RI','AskPSF')" />
                            <asp:RequiredFieldValidator ID="rfvtxtRIAskPSF" ControlToValidate="txtRIAskPSF" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                        <td>
                            <asp:TextBox ID="txtRICreateDate" runat="server" ReadOnly="true" CssClass="Form-datadisplay-input" />
                            <span style="color: Red">
                                <asp:Label ID="lblRIRequired" runat="server" Text="*" Style="display: none" /></span>
                            <asp:RequiredFieldValidator ID="rfvtxtRICreateDate" ControlToValidate="txtRICreateDate"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" EnableClientScript="true" />
                        </td>
                    </tr>
                    <tr>
                        <td colspan="6"><span style="color: Red">
                            <asp:Label ID="lblListingError" runat="server" Text="*Please input at least a listing!" Visible="false" /></span></td>
                    </tr>
                </table>
                <table cellpadding="5" cellspacing="5" class=" form-entry-table">
                    <tr id="SLister" runat="server">
                        <th scope="row">Sale Lister
                        </th>
                        <td>
                            <asp:Label ID="lblSLister" runat="server" Font-Size="12px" />
                            <asp:TextBox ID="txtSLister" runat="server" Style="display: none" />
                            <asp:ImageButton ID="btnSListerList" runat="server" Text="Search" ImageUrl="~/images/style01/Btn-manify.png" />
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvtxtSLister" ControlToValidate="txtSlister"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" />
                        </td>
                    </tr>
                    <tr id="RLister" runat="server">
                        <th scope="row">Rent Lister
                        </th>
                        <td>
                            <asp:Label ID="lblRLister" runat="server" Font-Size="12px" />
                            <asp:TextBox ID="txtRLister" runat="server" Style="display: none" />
                            <asp:ImageButton ID="btnRListerList" runat="server" Text="Search" ImageUrl="~/images/style01/Btn-manify.png" />
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvtxtRLister" ControlToValidate="txtRlister"
                                SetFocusOnError="true" runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" Enabled="false" />
                        </td>
                    </tr>
                </table>
            </div>


            <div id="divContentAdditionalInfo" class="form-entry-container">
                <table width="100%">
                    <tr>
                        <td class="General-info-title" style="width: 150px;">
                            <h3>Additional Information</h3>
                        </td>
                        <td>
                            <div class="General-info-title-line"></div>
                        </td>
                    </tr>
                </table>
                <table cellpadding="5" cellspacing="5" class="form-entry-table">
                    <tr>
                        <th scope="row">Remark
                        </th>
                        <td>
                            <asp:TextBox ID="txtRemark" runat="server" Width="573px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Given Commission
                        </th>
                        <td>
                            <asp:TextBox ID="txtCommissionRemark" runat="server" Width="573px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">GST Required (SALES)
                        </th>
                        <td>
                            <asp:RadioButton ID="rbSaleGSTNo" runat="server" Text="No" GroupName="gSaleGST" />
                            <asp:RadioButton ID="rbSaleGSTYes" runat="server" Text="Yes" GroupName="gSaleGST" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">GST Required (RENT)
                        </th>
                        <td>
                            <asp:RadioButton ID="rbRentGSTNo" runat="server" Text="No" GroupName="gRentGST" />
                            <asp:RadioButton ID="rbRentGSTYes" runat="server" Text="Yes" GroupName="gRentGST" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Show Sale On Mobile
                        </th>
                        <td>
                            <asp:RadioButton ID="rbSaleViewNo" runat="server" Text="No" GroupName="gSaleView" />
                            <asp:RadioButton ID="rbSaleViewYes" runat="server" Text="Yes" GroupName="gSaleView" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Show Rent On Mobile
                        </th>
                        <td>
                            <asp:RadioButton ID="rbRentViewNo" runat="server" Text="No" GroupName="gRentView" />
                            <asp:RadioButton ID="rbRentViewYes" runat="server" Text="Yes" GroupName="gRentView" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Sale Remark
                        </th>
                        <td>
                            <asp:TextBox ID="txtSaleRemark" runat="server" Width="573px" MaxLength="2000" TextMode="MultiLine" ToolTip="Sale Remark To Be Displayed In Mobile" Rows="3" placeholder="max length : 2000 characters"/>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Rent Remark
                        </th>
                        <td>
                            <asp:TextBox ID="txtRentRemark" runat="server" Width="573px" MaxLength="2000" TextMode="MultiLine" ToolTip="Rent Remark To Be Displayed In Mobile" Rows="3" placeholder="max length : 2000 characters"/>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Latitude
                        </th>
                        <td>
                            <asp:Textbox ID="txtLatitude" runat="server" onkeypress="return isNumber(event)" onkeyup="this.value = minmax(this.value, 0, 180)" ToolTip="minimum:0,maximum:180"/>
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Longitude
                        </th>
                        <td>
                            <asp:Textbox ID="txtLongitude" runat="server" onkeypress="return isNumber(event)" onkeyup="this.value = minmax(this.value, 0, 180)" ToolTip="minimum:0,maximum:180"/>
                        </td>
                    </tr>
                </table>
            </div>



            <div id="divContentIndustrial" class="form-entry-container">
                <table width="100%">
                    <tr>
                        <td class="General-info-title" style="width: 150px;">
                            <h3>Land</h3>
                        </td>
                        <td>
                            <div class="General-info-title-line"></div>
                        </td>
                    </tr>
                </table>
                <table cellpadding="5" cellspacing="5" class="form-entry-table">
                    <tr>
                        <th scope="row">Lot
                        </th>
                        <td>
                            <asp:TextBox ID="txtLot" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Mukim/Sec/Bandar
                        </th>
                        <td>
                            <asp:TextBox ID="txtSECMK" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Daerah
                        </th>
                        <td>
                            <asp:TextBox ID="txtDistrict" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Terrain
                        </th>
                        <td>
                            <asp:TextBox ID="txtTerrain" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Survey Sheet
                        </th>
                        <td>
                            <asp:TextBox ID="txtSurveySheet" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">CP Plan No
                        </th>
                        <td>
                            <asp:TextBox ID="txtCPPlanNo" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Title No.
                        </th>
                        <td>
                            <asp:TextBox ID="txtTitleNo" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Zoning
                        </th>
                        <td>
                            <asp:DropDownList ID="ddlZoning" runat="server" Width="300px">
                                <asp:ListItem Text="-SELECT-" Value="0" Selected="True" />
                                <asp:ListItem Text="Commercial" Value="1" />
                                <asp:ListItem Text="Residential" Value="2" />
                                <asp:ListItem Text="Transition" Value="3" />
                                <asp:ListItem Text="Industrial" Value="4" />
                                <asp:ListItem Text="Algriculture" Value="5" />
                                <asp:ListItem Text="Others" Value="6" />
                            </asp:DropDownList>
                            <span style="color: Red">*</span>
                            <asp:RequiredFieldValidator ID="rfvddlZoning" ControlToValidate="ddlZoning" SetFocusOnError="true"
                                runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                ForeColor="Red" Display="Dynamic" />
                            <asp:TextBox ID="txtZoningRemark" runat="server" Width="300px" Style="display: none" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Assessment Bill
                        </th>
                        <td>
                            <asp:TextBox ID="txtAssessmentBill" runat="server" Width="300px" />
                        </td>
                    </tr>
                    <tr>
                        <th scope="row">Quit Rent
                        </th>
                        <td>
                            <asp:TextBox ID="txtQuitRent" runat="server" Width="300px" />
                        </td>
                    </tr>
                </table>
            </div>


            <asp:Panel ID="pnlOwnerInfo" runat="server">
                <div id="divContentOwner" class="form-entry-container" runat="server">
                    <table width="100%">
                        <tr>
                            <td class="General-info-title" style="width: 150px;">
                                <h3>Owner</h3>
                            </td>
                            <td>
                                <div class="General-info-title-line"></div>
                            </td>
                        </tr>
                    </table>
                    <table cellpadding="5" cellspacing="5" class="form-entry-table">
                        <tr>
                            <th scope="row">Name
                            </th>
                            <td>
                                <asp:TextBox ID="txtName" runat="server" Width="300px" />
                                <span style="color: Red">*</span>
                                <asp:RequiredFieldValidator ID="rfvtxtName" ControlToValidate="txtName" SetFocusOnError="true"
                                    runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                    ForeColor="Red" Display="Dynamic" Enabled="false" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Company Name
                            </th>
                            <td>
                                <asp:TextBox ID="txtCompanyName" runat="server" Width="300px" /></td>
                        </tr>
                        <tr style="display: none;">
                            <th scope="row">Refer to Lister
                            </th>
                            <td>
                                <asp:CheckBox ID="chkReferLister" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Mobile
                            </th>
                            <td>
                                <asp:TextBox ID="txtMobile" runat="server" Width="300px" MaxLength="11" onkeypress="return isNumberKeyOnly(event)"
                                    onpaste="return false;" />
                                <span style="color: Red">*</span>
                                <asp:RequiredFieldValidator ID="rfvtxtMobile" ControlToValidate="txtMobile" SetFocusOnError="true"
                                    runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                    ForeColor="Red" Display="Dynamic" Enabled="false" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Phone
                            </th>
                            <td>
                                <asp:TextBox ID="txtPhone" runat="server" Width="300px" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Viewing Contact
                            </th>
                            <td>
                                <asp:TextBox ID="txtViewingContact" runat="server" Width="300px" /></td>
                        </tr>
                        <tr>
                            <th scope="row">Other Contact
                            </th>
                            <td>
                                <asp:TextBox ID="txtOtherContact" runat="server" Width="300px" /></td>
                        </tr>
                        <tr>
                            <th scope="row">Fax
                            </th>
                            <td>
                                <asp:TextBox ID="txtFax" runat="server" Width="300px" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Email
                            </th>
                            <td>
                                <asp:TextBox ID="txtEmail" runat="server" Width="300px" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Address
                            </th>
                            <td>
                                <asp:TextBox ID="txtAddress" runat="server" Width="300px" />
                            </td>
                        </tr>
                    </table>
                </div>
                <div id="divContentLandlord" class="form-entry-container" runat="server">
                    <table width="100%">
                        <tr>
                            <td class="General-info-title" style="width: 150px;">
                                <h3>Landlord</h3>
                            </td>
                            <td>
                                <div class="General-info-title-line"></div>
                            </td>
                        </tr>
                    </table>
                    <table cellpadding="5" cellspacing="5" class="form-entry-table">
                        <tr>
                            <th scope="row">Name
                            </th>
                            <td>
                                <asp:TextBox ID="txtLandlordName" runat="server" Width="300px" />
                                <span style="color: Red">*</span>
                                <asp:RequiredFieldValidator ID="rfvtxtLandlordName" ControlToValidate="txtLandlordName" SetFocusOnError="true"
                                    runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                    ForeColor="Red" Display="Dynamic" Enabled="false" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Company Name
                            </th>
                            <td>
                                <asp:TextBox ID="txtLandlordCompanyName" runat="server" Width="300px" /></td>
                        </tr>
                        <tr style="display: none;">
                            <th scope="row">Refer to Lister
                            </th>
                            <td>
                                <asp:CheckBox ID="chkLandlordReferLister" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Mobile
                            </th>
                            <td>
                                <asp:TextBox ID="txtLandlordMobile" runat="server" Width="300px" MaxLength="11" onkeypress="return isNumberKeyOnly(event)"
                                    onpaste="return false;" />
                                <span style="color: Red">*</span>
                                <asp:RequiredFieldValidator ID="rfvtxtLandlordMobile" ControlToValidate="txtLandlordMobile" SetFocusOnError="true"
                                    runat="server" ValidationGroup="PropertyEntry" ErrorMessage="<br />Required"
                                    ForeColor="Red" Display="Dynamic" Enabled="false" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Phone
                            </th>
                            <td>
                                <asp:TextBox ID="txtLandlordPhone" runat="server" Width="300px" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Viewing Contact
                            </th>
                            <td>
                                <asp:TextBox ID="txtLandlordViewingContact" runat="server" Width="300px" /></td>
                        </tr>
                        <tr>
                            <th scope="row">Other Contact
                            </th>
                            <td>
                                <asp:TextBox ID="txtLandlordOtherContact" runat="server" Width="300px" /></td>
                        </tr>
                        <tr>
                            <th scope="row">Fax
                            </th>
                            <td>
                                <asp:TextBox ID="txtLandlordFax" runat="server" Width="300px" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Email
                            </th>
                            <td>
                                <asp:TextBox ID="txtLandlordEmail" runat="server" Width="300px" />
                            </td>
                        </tr>
                        <tr>
                            <th scope="row">Address
                            </th>
                            <td>
                                <asp:TextBox ID="txtLandlordAddress" runat="server" Width="300px" />
                            </td>
                        </tr>
                    </table>
                </div>
            </asp:Panel>
            <div class=" form-entry-container">

                <table width="100%" style="margin-left: 0px;">
                    <tr>
                        <td>
                            <div class="General-info-title-line"></div>
                        </td>
                        <td style="width: 160px;">
                            <asp:UpdatePanel ID="upPropertyEntry" runat="server">
                                <ContentTemplate>
                                    &nbsp;<asp:Button ID="btnBack" runat="server" Text="Cancel" CssClass="search-btn" Width="60" />
                                    &nbsp;<asp:Button ID="BtnSave" runat="server" Text="Save" ValidationGroup="PropertyEntry" CssClass="search-btn" Width="80" />
                                    <cc1:ConfirmButtonExtender ID="CBEBack" runat="server" TargetControlID="btnBack" />
                                </ContentTemplate>
                            </asp:UpdatePanel>
                        </td>
                        <td style="width: 60px">
                            <div class="General-info-title-line"></div>
                        </td>
                    </tr>
                </table>
                <div class=" form-entry-title" style="line-height: 15px; margin-bottom: 0px; margin-top: 15px;"><span style="color: Red; font-size: 10px;">*Required fields</span></div>
            </div>
        </asp:Panel>
        <!-- For Popup - Property Type Entry -->
        <asp:Panel ID="pnlPropertyTypeEntry" runat="server" CssClass="modalPopup" Style="display: none"
            Width="700px" Height="600px">
            <table border="0" cellpadding="0" cellspacing="0" class="PopupContainer" width="600">
                <tr>
                    <td style="width: 30px; height: 41px" background="images/style01/PopupHead-top-left.gif"></td>
                    <td background="images/style01/PopupHead-top-middle.gif" valign="bottom">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupHeader">
                            <thead>
                                <tr>
                                    <td align="center" style="text-align: center" height="30">
                                        <asp:Label ID="lblPropertyEntryTitle" runat="server" Text="Property Type Detail" />
                                    </td>
                                    <td align="right" style="text-align: right">
                                        <asp:ImageButton ID="imgButPropertyTypeClose" runat="server" Width="20px" Height="20px"
                                            AlternateText="Close" ImageUrl="~/images/style01/Btn-Close.png" />
                                    </td>
                                </tr>
                            </thead>
                        </table>
                    </td>
                    <td style="width: 30px; height: 41px" background="images/style01/PopupHead-top-right.gif"></td>
                </tr>
                <tr>
                    <td width="30" height="30" background="images/style01/Popup-PropertyType-left.gif">&nbsp;</td>
                    <td background="images/style01/Popup-PropertyType-middle.gif" style="background-color: white;">&nbsp;</td>
                    <td background="images/style01/Popup-PropertyType-right.gif">&nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 30px" background="images/style01/Popup-left-middle.gif"></td>
                    <td bgcolor="#FFFFFF">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupDataDisplay" style="height: 100%; background-color: #FFFFFF;">
                            <tr>
                                <td>
                                    <div style="height: 500px; overflow: auto;">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <strong>Property Type</strong>
                                                </td>
                                                <td>
                                                    <strong>Description</strong>
                                                </td>
                                            </tr>
                                            <asp:Repeater ID="repPropertyType" runat="server">
                                                <ItemTemplate>
                                                    <tr>
                                                        <td>
                                                            <asp:LinkButton ID="lbtRepPropertyTypeEdit" runat="server" Text='<%#Container.DataItem("Type").ToString%>'
                                                                CommandName="SelectItem" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' />
                                                        </td>
                                                        <td>
                                                            <asp:Label ID="lblRepPropertyTypeUID" runat="server" Text='<%#Container.DataItem("TypeId").ToString%>' Visible="false" /><%#Container.DataItem("TypeDesc").ToString%> 
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </table>
                                    </div>




                                </td>
                            </tr>
                        </table>
                    </td>

                    <td style="width: 30px" background="images/style01/Popup-right-middle.gif"></td>
                </tr>
                <tr>
                    <td style="width: 30px; height: 55px" background="images/style01/Popup-bottom-left.gif"></td>
                    <td style="text-align: right" background="images/style01/Popup-bottom-middle.gif">&nbsp;</td>
                    <td style="width: 30px; height: 55px" background="images/style01/Popup-bottom-right.gif"></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Button ID="btnPropertyTypeHiddenNew" runat="server" Style="display: none" />
        <cc1:ModalPopupExtender ID="mpePropertyTypeEntry" runat="server" BackgroundCssClass="modalBackground"
            DropShadow="false" PopupControlID="pnlPropertyTypeEntry" TargetControlID="btnPropertyTypeHiddenNew"
            EnableViewState="True">
        </cc1:ModalPopupExtender>
        <!-- End Popup -->
        <!-- For Popup - Road -->
        <asp:Panel ID="pnlRoadEntry" runat="server" CssClass="modalPopup" Style="display: none"
            Width="700px" Height="600px">
            <table border="0" cellpadding="0" cellspacing="0" class="PopupContainer" width="600">
                <tr>
                    <td style="width: 30px; height: 41px" background="images/style01/PopupHead-top-left.gif"></td>
                    <td background="images/style01/PopupHead-top-middle.gif" valign="bottom">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupHeader">
                            <thead>
                                <tr>
                                    <td align="center" style="text-align: center" height="30">
                                        <asp:Label ID="lblRoadTitle" runat="server" Text="Road Name Detail" />
                                    </td>
                                    <td align="right" style="text-align: right">
                                        <asp:ImageButton ID="imgButRoadClose" runat="server" Width="20px" Height="20px"
                                            AlternateText="Close" ImageUrl="~/images/style01/Btn-Close.png" /></td>
                                </tr>
                            </thead>
                        </table>
                    </td>
                    <td style="width: 30px; height: 41px" background="images/style01/PopupHead-top-right.gif"></td>
                </tr>
                <tr>
                    <td width="30" height="30" background="images/style01/Popup-PropertyType-left.gif">&nbsp;</td>
                    <td background="images/style01/Popup-PropertyType-middle.gif" style="background-color: white;">&nbsp;</td>
                    <td background="images/style01/Popup-PropertyType-right.gif">&nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 30px" background="images/style01/Popup-left-middle.gif"></td>
                    <td bgcolor="#FFFFFF">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupDataDisplay" style="height: 100%; background-color: #FFFFFF;">
                            <tr>
                                <td>
                                    <div style="height: 500px; overflow: auto;">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <strong>Road Name</strong>
                                                </td>
                                                <td></td>
                                            </tr>
                                            <asp:Repeater ID="repRoad" runat="server">
                                                <ItemTemplate>
                                                    <tr>
                                                        <td>
                                                            <asp:LinkButton ID="lbtRepRoadEdit" runat="server" Text='<%#Container.DataItem("Road").ToString%>'
                                                                CommandName="SelectItem" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' /><asp:Label
                                                                    ID="lblRepRoadId" runat="server" Text='<%#Container.DataItem("RoadId").ToString%>'
                                                                    Visible="false" />
                                                        </td>
                                                        <td></td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </table>
                                        <asp:Label ID="lblNoRoadFound" runat="server"></asp:Label>
                                    </div>




                                </td>
                            </tr>
                        </table>
                    </td>

                    <td style="width: 30px" background="images/style01/Popup-right-middle.gif"></td>
                </tr>
                <tr>
                    <td style="width: 30px; height: 55px" background="images/style01/Popup-bottom-left.gif"></td>
                    <td style="text-align: right" background="images/style01/Popup-bottom-middle.gif">&nbsp;</td>
                    <td style="width: 30px; height: 55px" background="images/style01/Popup-bottom-right.gif"></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Button ID="btnRoadHiddenNew" runat="server" Style="display: none" />
        <cc1:ModalPopupExtender ID="mpeRoadEntry" runat="server" BackgroundCssClass="modalBackground"
            DropShadow="false" PopupControlID="pnlRoadEntry" TargetControlID="btnRoadHiddenNew"
            EnableViewState="True">
        </cc1:ModalPopupExtender>
        <!-- End Popup -->
        <!-- For Popup - Project -->
        <asp:Panel ID="pnlProjectEntry" runat="server" CssClass="modalPopup" Style="display: none"
            Width="700px" Height="600px">
            <table border="0" cellpadding="0" cellspacing="0" class="PopupContainer" width="600">
                <tr>
                    <td style="width: 30px; height: 41px" background="images/style01/PopupHead-top-left.gif"></td>
                    <td background="images/style01/PopupHead-top-middle.gif" valign="bottom">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupHeader">
                            <thead>
                                <tr>
                                    <td align="center" style="text-align: center" height="30">
                                        <asp:Label ID="lblProjectTitle" runat="server" Text="Project Detail" />
                                    </td>
                                    <td align="right" style="text-align: right">
                                        <asp:ImageButton ID="imgButProjectClose" runat="server" Width="20px" Height="20px"
                                            AlternateText="Close" ImageUrl="~/images/style01/Btn-Close.png" />
                                    </td>
                                </tr>
                            </thead>
                        </table>
                    </td>
                    <td style="width: 30px; height: 41px" background="images/style01/PopupHead-top-right.gif"></td>
                </tr>
                <tr>
                    <td width="30" height="30" background="images/style01/Popup-PropertyType-left.gif">&nbsp;</td>
                    <td background="images/style01/Popup-PropertyType-middle.gif" style="background-color: white;">&nbsp;</td>
                    <td background="images/style01/Popup-PropertyType-right.gif">&nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 30px" background="images/style01/Popup-left-middle.gif"></td>
                    <td bgcolor="#FFFFFF">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupDataDisplay" style="height: 100%; background-color: #FFFFFF;">
                            <tr>
                                <td>
                                    <div style="height: 500px; overflow: auto;">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <strong>Project Name</strong>
                                                </td>
                                                <td></td>
                                            </tr>
                                            <asp:Repeater ID="repProject" runat="server">
                                                <ItemTemplate>
                                                    <tr>
                                                        <td>
                                                            <asp:LinkButton ID="lbtRepProjectEdit" runat="server" Text='<%#Container.DataItem("Project").ToString%>'
                                                                CommandName="SelectItem" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' /><asp:Label
                                                                    ID="lblRepProjectId" runat="server" Text='<%#Container.DataItem("ProjectId").ToString%>'
                                                                    Visible="false" />
                                                        </td>
                                                        <td></td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </table>
                                        <asp:Label ID="lblNoProjectFound" runat="server"></asp:Label>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td style="width: 30px" background="images/style01/Popup-right-middle.gif"></td>
                </tr>
                <tr>
                    <td style="width: 30px; height: 55px" background="images/style01/Popup-bottom-left.gif"></td>
                    <td style="text-align: right" background="images/style01/Popup-bottom-middle.gif">&nbsp;</td>
                    <td style="width: 30px; height: 55px" background="images/style01/Popup-bottom-right.gif"></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Button ID="btnProjectHiddenNew" runat="server" Style="display: none" />
        <cc1:ModalPopupExtender ID="mpeProjectEntry" runat="server" BackgroundCssClass="modalBackground"
            DropShadow="false" PopupControlID="pnlProjectEntry" TargetControlID="btnProjectHiddenNew"
            EnableViewState="True">
        </cc1:ModalPopupExtender>
        <!-- End Popup -->
        <!-- For Popup - ListerList -->
        <asp:Panel ID="pnlListerListEntry" runat="server" CssClass="modalPopup" Style="display: none"
            Width="700px" Height="600px">
            <table border="0" cellpadding="0" cellspacing="0" class="PopupContainer" width="600">
                <tr>
                    <td style="width: 30px; height: 41px" background="images/style01/PopupHead-top-left.gif"></td>
                    <td background="images/style01/PopupHead-top-middle.gif" valign="bottom">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupHeader">
                            <thead>
                                <tr>
                                    <td align="center" style="text-align: center" height="30">
                                        <asp:Label ID="lblListerListTitle" runat="server" Text="Lister List" />
                                    </td>
                                    <td align="right" style="text-align: right">
                                        <asp:ImageButton ID="imgbutListerListClose" runat="server" Width="20px" Height="20px"
                                            AlternateText="Close" ImageUrl="~/images/style01/Btn-Close.png" />
                                    </td>
                                </tr>
                            </thead>
                        </table>
                    </td>
                    <td style="width: 30px; height: 41px" background="images/style01/PopupHead-top-right.gif"></td>
                </tr>
                <tr>
                    <td width="30" height="30" background="images/style01/Popup-PropertyType-left.gif">&nbsp;</td>
                    <td background="images/style01/Popup-PropertyType-middle.gif" style="background-color: white;">&nbsp;</td>
                    <td background="images/style01/Popup-PropertyType-right.gif">&nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 30px" background="images/style01/Popup-left-middle.gif"></td>
                    <td bgcolor="#FFFFFF">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="PopupDataDisplay" style="height: 100%; background-color: #FFFFFF;">
                            <tr>
                                <td>
                                    <div style="height: 500px; overflow: auto;">
                                        <table width="100%">
                                            <tr>
                                                <td>
                                                    <strong>Lister Name</strong>
                                                </td>
                                                <td></td>
                                            </tr>
                                            <asp:Repeater ID="repListerList" runat="server">
                                                <ItemTemplate>
                                                    <tr>
                                                        <td>
                                                            <asp:LinkButton ID="lbtrepListerListEdit" runat="server" Text='<%#Container.DataItem("Name").ToString%>'
                                                                CommandName="SelectItem" CommandArgument='<%# DataBinder.Eval(Container,"ItemIndex") %>' /><asp:Label
                                                                    ID="lblRepListerListId" runat="server" Text='<%#Container.DataItem("StaffId").ToString%>'
                                                                    Visible="false" />
                                                        </td>
                                                        <td></td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </table>

                                    </div>




                                </td>
                            </tr>
                        </table>
                    </td>

                    <td style="width: 30px" background="images/style01/Popup-right-middle.gif"></td>
                </tr>
                <tr>
                    <td style="width: 30px; height: 55px" background="images/style01/Popup-bottom-left.gif"></td>
                    <td style="text-align: right" background="images/style01/Popup-bottom-middle.gif">&nbsp;</td>
                    <td style="width: 30px; height: 55px" background="images/style01/Popup-bottom-right.gif"></td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Button ID="btnListerListHiddenNew" runat="server" Style="display: none" />
        <cc1:ModalPopupExtender ID="mpeListerListEntry" runat="server" BackgroundCssClass="modalBackground"
            DropShadow="false" PopupControlID="pnlListerListEntry" TargetControlID="btnListerListHiddenNew"
            EnableViewState="True">
        </cc1:ModalPopupExtender>
        <!-- End Popup -->

    </div>

    <!-- Hidden Field -->
    <asp:Label ID="lblhidPropertyId" runat="server" Visible="false" />
    <asp:Label ID="lblhidRoadId" runat="server" Visible="False" />
    <asp:Label ID="lblhidProjectId" runat="server" Visible="False" />
    <asp:Label ID="lblhidPropertyTypeId" runat="server" Visible="false" />
    <asp:Label ID="lblhidSListerId" runat="server" Visible="false" />
    <asp:Label ID="lblhidRListerId" runat="server" Visible="false" />
    <asp:Label ID="lblhidListerType" runat="server" Visible="false" />
    <!-- to determine which lister type was clicked -->
    <asp:Label ID="lblhidStaffId" runat="server" Visible="false" />
    <asp:Label ID="lblhidStaffType" runat="server" Visible="false" />
    <asp:Label ID="lblhidISEFP" runat="server" Text="0" Visible="false" />
    <asp:Label ID="lblhidListType" runat="server" Visible="false" />
    <asp:Label ID="lblhidCreateDate" runat="server" Visible="false" />
    <asp:Label ID="lblhidSCreateDate" runat="server" Visible="false" />
    <asp:Label ID="lblhidRCreateDate" runat="server" Visible="false" />
    <!-- Hidden Field -->


    <script language="javascript" type="text/javascript">
        $(document).ready(function () {
            if (document.getElementById('<%=chkPendingStatus.ClientID%>').checked) {
                //alert("checked");
                var Pending = document.getElementById('<%=chkPendingStatus.clientID %>');
                var PendingWho = document.getElementById('<%=txtPendingWho.clientID %>');
                var PendingWhen = document.getElementById('<%=txtPendingWhen.clientID %>');
                var PendingWhy = document.getElementById('<%=txtPendingWhy.clientID %>');
                PendingWho.style.display = "inline";
                PendingWho.style.visibility = "visible";
                PendingWhen.style.display = "inline";
                PendingWhen.style.visibility = "visible";
                PendingWhy.style.display = "inline";
                PendingWhy.style.visibility = "visible";
            }
            if (document.getElementById('<%=chkRentPendingStatus.ClientID%>').checked) {
                //alert("rent checked");
                var Pending = document.getElementById('<%=chkRentPendingStatus.ClientID%>');
                var PendingWho = document.getElementById('<%=txtRentPendingWho.ClientID%>');
                var PendingWhen = document.getElementById('<%=txtRentPendingWhen.ClientID%>');
                var PendingWhy = document.getElementById('<%=txtRentPendingWhy.ClientID%>');
                PendingWho.style.display = "inline";
                PendingWho.style.visibility = "visible";
                PendingWhen.style.display = "inline";
                PendingWhen.style.visibility = "visible";
                PendingWhy.style.display = "inline";
                PendingWhy.style.visibility = "visible";
            }


        });
        function CheckSignboard() {
            var Signboard = document.getElementById('<%=chkSignboard.clientID %>');
            var SignboardWhere = document.getElementById('<%=txtSignboardWhere.clientID %>');
            var SignboardDate = document.getElementById('<%=txtSignboardDate.clientID %>');
            if (Signboard.checked == true) {
                SignboardWhere.style.display = "inline";
                SignboardWhere.style.visibility = "visible";
                SignboardDate.style.display = "inline";
                SignboardDate.style.visibility = "visible";
            }
            else {
                SignboardWhere.style.display = "none";
                SignboardWhere.style.visibility = "hidden";
                SignboardDate.style.display = "none";
                SignboardDate.style.visibility = "hidden";
            }
        }
        function CheckPending(intype) {
            var Pending;
            var PendingWho;
            var PendingWhen;
            var PendingWhy;
            //alert(intype);
            if (intype == 'sale') {
                var Pending = document.getElementById('<%=chkPendingStatus.clientID %>');
            var PendingWho = document.getElementById('<%=txtPendingWho.clientID %>');

            var PendingWhen = document.getElementById('<%=txtPendingWhen.clientID %>');
            var PendingWhy = document.getElementById('<%=txtPendingWhy.clientID %>');
        } else if (intype == 'rent') {
            var Pending = document.getElementById('<%=chkRentPendingStatus.ClientID%>');
            var PendingWho = document.getElementById('<%=txtRentPendingWho.ClientID%>');
            var PendingWhen = document.getElementById('<%=txtRentPendingWhen.ClientID%>');
            var PendingWhy = document.getElementById('<%=txtRentPendingWhy.ClientID%>');
        } else {
            return false;
        }
    if (Pending.checked == true) {
        PendingWho.style.display = "inline";
        PendingWho.style.visibility = "visible";
        PendingWhen.style.display = "inline";
        PendingWhen.style.visibility = "visible";
        PendingWhy.style.display = "inline";
        PendingWhy.style.visibility = "visible";
        if (PendingWho.innerText == '') {
            PendingWho.innerText = '<%= Session("UserName").ToString()%>';
                var today = new Date();
                var month = new Array();
                month[0] = "JAN";
                month[1] = "FEB";
                month[2] = "MAC";
                month[3] = "APR";
                month[4] = "MAY";
                month[5] = "JUN";
                month[6] = "JUL";
                month[7] = "AUG";
                month[8] = "SEP";
                month[9] = "OCT";
                month[10] = "NOV";
                month[11] = "DEC";
                var n = month[today.getMonth()];
                PendingWhen.innerText = today.getDate() + "-" + n + "-" + today.getFullYear()


            }
        }
        else {
            PendingWho.style.display = "none";
            PendingWho.style.visibility = "hidden";
            PendingWhen.style.display = "none";
            PendingWhen.style.visibility = "hidden";
            PendingWhy.style.display = "none";
            PendingWhy.style.visibility = "hidden";
        }
    }
    function checkExclusive() {
        var Exclusive = document.getElementById('<%=chkExclusiveStatus.ClientID %>');
        var ExclusiveWho = document.getElementById('<%=txtExclusiveWho.ClientID %>');
        var ExclusiveWhen = document.getElementById('<%=txtExclusiveWhen.ClientID %>');
        var ExclusiveEndDate = document.getElementById('<%=txtExclusiveEndDate.ClientID %>');
        if (Exclusive.checked == true) {
            ExclusiveWho.style.display = "inline";
            ExclusiveWho.style.visibility = "visible";
            ExclusiveWhen.style.display = "inline";
            ExclusiveWhen.style.visibility = "visible";
            ExclusiveEndDate.style.display = "inline";
            ExclusiveEndDate.style.visibility = "visible";
        }
        else {
            ExclusiveWho.style.display = "none";
            ExclusiveWho.style.visibility = "hidden";
            ExclusiveWhen.style.display = "none";
            ExclusiveWhen.style.visibility = "hidden";
            ExclusiveEndDate.style.display = "none";
            ExclusiveEndDate.style.visibility = "hidden";
        }
    }
    function CalculateACRE() {
        var LASF = document.getElementById('<%=txtLASF.ClientId %>');
        var LAAR = document.getElementById('<%=txtACRE.ClientId %>');
        if (LASF.value == '') {
            LAAR.value = 0;
        }
        else {
            tempLASF = parseFloat(LASF.value.replace(/,/g, ''));
            LAAR.value = tempLASF / 43560.0
        }
    }
    function CalculateLA() {
        var LAWidthInput;
        var LALengthInput;
        var LASF = document.getElementById('<%=txtLASF.ClientId %>');
        var LAAR = document.getElementById('<%=txtACRE.ClientId %>');
        var LAWidth = document.getElementById('<%=txtLAWidth.ClientId %>');
        var LALength = document.getElementById('<%=txtLALength.ClientId %>');
        if (LAWidth.value == '') {
            LAWidthInput = 0;
        }
        else {
            LAWidthInput = parseFloat(LAWidth.value);
        }
        if (LALength == '') {
            LALengthInput = 0;
        }
        else {
            LALengthInput = parseFloat(LALength.value);
        }
        LASF.value = LAWidthInput * LALengthInput;
        LAAR.value = LASF.value / 43560.0
    }
    function CalculateBU() {
        var BUWidthInput;
        var BULengthInput;
        var BUSF = document.getElementById('<%=txtBUSF.ClientId %>');
        var BUWidth = document.getElementById('<%=txtBUWidth.ClientId %>');
        var BULength = document.getElementById('<%=txtBULength.ClientId %>');
        if (BUWidth.value == '') {
            BUWidthInput = 0;
        }
        else {
            BUWidthInput = parseFloat(BUWidth.value);
        }
        if (BULength == '') {
            BULengthInput = 0;
        }
        else {
            BULengthInput = parseFloat(BULength.value);
        }
        BUSF.value = BUWidthInput * BULengthInput;
    }
    function calculateBUAmt() {
        var BUSF = document.getElementById('<%=txtBUSF.ClientID %>');
        var BUSFVal = BUSF.value

        var chkSC = document.getElementById('<%=chkSC.ClientID %>');
        if (chkSC.checked == true) {
            var SCAmt = document.getElementById('<%=txtSCAmt.ClientID %>');
            var SCPSF = document.getElementById('<%=txtSCPSF.ClientID %>');
            var SCAskAmt = document.getElementById('<%=txtSCAskAmt.ClientID %>');
            var SCAskPSF = document.getElementById('<%=txtSCAskPSF.ClientID %>');
            if (SCAmt.value != '') {
                var SCAmtVal = SCAmt.value;
                var A = parseFloat(SCAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                SCPSF.value = A.toFixed(2);
            }
            if (SCAskAmt.value != '') {
                var SCAskAmtVal = SCAskAmt.value;
                var A = parseFloat(SCAskAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                SCAskPSF.value = A.toFixed(2);
            }
        }

        var chkSR = document.getElementById('<%=chkSR.ClientID %>');
        if (chkSR.checked == true) {
            var SRAmt = document.getElementById('<%=txtSRAmt.ClientID %>');
            var SRPSF = document.getElementById('<%=txtSRPSF.ClientID %>');
            var SRAskAmt = document.getElementById('<%=txtSRAskAmt.ClientID %>');
            var SRAskPSF = document.getElementById('<%=txtSRAskPSF.ClientID %>');
            if (SRAmt.value != '') {
                var SRAmtVal = SRAmt.value;
                var A = parseFloat(SRAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                SRPSF.value = A.toFixed(2);
            }
            if (SRAskAmt.value != '') {
                var SRAskAmtVal = SRAskAmt.value;
                var A = parseFloat(SRAskAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                SRAskPSF.value = A.toFixed(2);
            }
        }

        var chkSI = document.getElementById('<%=chkSI.ClientID %>');
        if (chkSI.checked == true) {
            var SIAmt = document.getElementById('<%=txtSIAmt.ClientID %>');
            var SIPSF = document.getElementById('<%=txtSIPSF.ClientID %>');
            var SIAskAmt = document.getElementById('<%=txtSIAskAmt.ClientID %>');
            var SIAskPSF = document.getElementById('<%=txtSIAskPSF.ClientID %>');
            if (SIAmt.value != '') {
                var SIAmtVal = SIAmt.value;
                var A = parseFloat(SIAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                SIPSF.value = A.toFixed(2);
            }
            if (SIAskAmt.value != '') {
                var SIAskAmtVal = SIAskAmt.value;
                var A = parseFloat(SIAskAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                SIAskPSF.value = A.toFixed(2);
            }
        }

        var chkSL = document.getElementById('<%=chkSL.ClientID %>');
        if (chkSL.checked == true) {
            var SLAmt = document.getElementById('<%=txtSLAmt.ClientID %>');
            var SLPSF = document.getElementById('<%=txtSLPSF.ClientID %>');
            var SLAskAmt = document.getElementById('<%=txtSLAskAmt.ClientID %>');
            var SLAskPSF = document.getElementById('<%=txtSLAskPSF.ClientID %>');
            if (SLAmt.value != '') {
                var SLAmtVal = SIAmt.value;
                var A = parseFloat(SLAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                SLPSF.value = A.toFixed(2);
            }
            if (SLAskAmt.value != '') {
                var SLAskAmtVal = SLAskAmt.value;
                var A = parseFloat(SLAskAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                SLAskPSF.value = A.toFixed(2);
            }
        }

        var chkRC = document.getElementById('<%=chkRC.ClientID %>');
        if (chkRC.checked == true) {
            var RCAmt = document.getElementById('<%=txtRCAmt.ClientID %>');
            var RCPSF = document.getElementById('<%=txtRCPSF.ClientID %>');
            var RCAskAmt = document.getElementById('<%=txtRCAskAmt.ClientID %>');
            var RCAskPSF = document.getElementById('<%=txtRCAskPSF.ClientID %>');
            if (RCAmt.value != '') {
                var RCAmtVal = RCAmt.value;
                var A = parseFloat(RCAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                RCPSF.value = A.toFixed(2);
            }
            if (RCAskAmt.value != '') {
                var RCAskAmtVal = RCAskAmt.value;
                var A = parseFloat(RCAskAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                RCAskPSF.value = A.toFixed(2);
            }
        }

        var chkRR = document.getElementById('<%=chkRR.ClientID %>');
        if (chkRR.checked == true) {
            var RRAmt = document.getElementById('<%=txtRRAmt.ClientID %>');
            var RRPSF = document.getElementById('<%=txtRRPSF.ClientID %>');
            var RRAskAmt = document.getElementById('<%=txtRRAskAmt.ClientID %>');
            var RRAskPSF = document.getElementById('<%=txtRRAskPSF.ClientID %>');
            if (RRAmt.value != '') {
                var RRAmtVal = RRAmt.value;
                var A = parseFloat(RRAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                RRPSF.value = A.toFixed(2);
            }
            if (RRAskAmt.value != '') {
                var RRAskAmtVal = RRAskAmt.value;
                var A = parseFloat(RRAskAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                RRAskPSF.value = A.toFixed(2);
            }
        }

        var chkRI = document.getElementById('<%=chkRI.ClientID %>');
        if (chkRI.checked == true) {
            var RIAmt = document.getElementById('<%=txtRIAmt.ClientID %>');
            var RIPSF = document.getElementById('<%=txtRIPSF.ClientID %>');
            var RIAskAmt = document.getElementById('<%=txtRIAskAmt.ClientID %>');
            var RIAskPSF = document.getElementById('<%=txtRIAskPSF.ClientID %>');
            if (RIAmt.value != '') {
                var RIAmtVal = RIAmt.value;
                var A = parseFloat(RIAmt.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                RIPSF.value = A.toFixed(2);
            }
            if (RIAskAmt.value != '') {
                var RIAskAmtVal = RIAskAmt.value;
                var A = parseFloat(RIAskAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                RIAskPSF.value = A.toFixed(2);
            }
        }

        var chkRL = document.getElementById('<%=chkRL.ClientID %>');
        if (chkRL.checked == true) {
            var RLAmt = document.getElementById('<%=txtRLAmt.ClientID %>');
            var RLPSF = document.getElementById('<%=txtRLPSF.ClientID %>');
            var RLAskAmt = document.getElementById('<%=txtRLAskAmt.ClientID %>');
            var RLAskPSF = document.getElementById('<%=txtRLAskPSF.ClientID %>');
            if (RLAmt.value != '') {
                var RLAmtVal = RLAmt.value;
                var A = parseFloat(RLAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                RLPSF.value = A.toFixed(2);
            }
            if (RLAskAmt.value != '') {
                var RLAskAmtVal = RLAskAmt.value;
                var A = parseFloat(RLAskAmtVal.replace(",", "")) / parseFloat(BUSFVal.replace(",", ""));
                RLAskPSF.value = A.toFixed(2);
            }
        }
    }
    function calculatePSF(lt, tp) {
        if (lt == "SC") {
            var Amt = document.getElementById('<%=txtSCAmt.ClientID %>');
            var PSF = document.getElementById('<%=txtSCPSF.ClientID %>');
            var AskAmt = document.getElementById('<%=txtSCAskAmt.ClientID %>');
            var AskPSF = document.getElementById('<%=txtSCAskPSF.ClientID %>');
            var GPSF = document.getElementById('<%=txtBUSF.ClientID %>');
        }
        else if (lt == "SR") {
            var Amt = document.getElementById('<%=txtSRAmt.ClientID %>');
        var PSF = document.getElementById('<%=txtSRPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=txtSRAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=txtSRAskPSF.ClientID %>');
        var GPSF = document.getElementById('<%=txtBUSF.ClientID %>');
    }
    else if (lt == "SL") {
        var Amt = document.getElementById('<%=txtSLAmt.ClientID %>');
        var PSF = document.getElementById('<%=txtSLPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=txtSLAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=txtSLAskPSF.ClientID %>');
        var GPSF = document.getElementById('<%=txtLASF.ClientID %>');
    }
    else if (lt == "SI") {
        var Amt = document.getElementById('<%=txtSIAmt.ClientID %>');
        var PSF = document.getElementById('<%=txtSIPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=txtSIAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=txtSIAskPSF.ClientID %>');
        var GPSF = document.getElementById('<%=txtBUSF.ClientID %>');
    }
    else if (lt == "RC") {
        var Amt = document.getElementById('<%=txtRCAmt.ClientID %>');
        var PSF = document.getElementById('<%=txtRCPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=txtRCAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=txtRCAskPSF.ClientID %>');
        var GPSF = document.getElementById('<%=txtBUSF.ClientID %>');
    }
    else if (lt == "RR") {
        var Amt = document.getElementById('<%=txtRRAmt.ClientID %>');
        var PSF = document.getElementById('<%=txtRRPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=txtRRAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=txtRRAskPSF.ClientID %>');
        var GPSF = document.getElementById('<%=txtBUSF.ClientID %>');
    }
    else if (lt == "RL") {
        var Amt = document.getElementById('<%=txtRLAmt.ClientID %>');
        var PSF = document.getElementById('<%=txtRLPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=txtRLAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=txtRLAskPSF.ClientID %>');
        var GPSF = document.getElementById('<%=txtLASF.ClientID %>');
    }
    else if (lt == "RI") {
        var Amt = document.getElementById('<%=txtRIAmt.ClientID %>');
        var PSF = document.getElementById('<%=txtRIPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=txtRIAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=txtRIAskPSF.ClientID %>');
        var GPSF = document.getElementById('<%=txtBUSF.ClientID %>');
    }
    var GPSFVal = GPSF.value;
    var PSFVal = PSF.value;
    var AmtVal = Amt.value;
    var AskAmtVal = AskAmt.value;
    var AskPSFVal = AskPSF.value;
    if (tp == "Amt") {
        if (parseFloat(GPSFVal.replace(",", "") == 0)) {
            PSF.value = 0;
        }
        else if (parseFloat(AmtVal.replace(",", "")) == 0) {
            PSF.value = 0;
        }
        else {
            //            PSF.value = parseFloat(Amt.value) / parseFloat(GPSF.value);
            var P = parseFloat(AmtVal.replace(",", "")) / parseFloat(GPSFVal.replace(",", ""));
            PSF.value = P.toFixed(2);
        }
    }
    else if (tp == "PSF") {
        if (parseFloat(GPSFVal.replace(",", "") == 0)) {
            Amt.value = 0;
        }
        else if (parseFloat(PSFVal.replace(",", "")) == 0) {
            Amt.value = 0;
        }
        else {
            //            Amt.value = parseFloat(PSF.value) * parseFloat(GPSF.value);
            var A = parseFloat(PSFVal.replace(",", "")) * parseFloat(GPSFVal.replace(",", ""));
            Amt.value = A.toFixed(2);
        }
    }
    else if (tp == "AskAmt") {
        if (parseFloat(GPSFVal.replace(",", "") == 0)) {
            AskPSF.value = 0;
        }
        else if (parseFloat(AskAmtVal.replace(",", "")) == 0) {
            AskPSF.value = 0;
        }
        else {
            //            AskPSF.value = parseFloat(AskAmt.value) / parseFloat(GPSF.value);
            var AP = parseFloat(AskAmtVal.replace(",", "")) / parseFloat(GPSFVal.replace(",", ""));
            AskPSF.value = AP.toFixed(2);
        }
    }
    else if (tp == "AskPSF") {
        if (parseFloat(GPSFVal.replace(",", "") == 0)) {
            AskAmt.value = 0;
        }
        else if (parseFloat(AskPSFVal.replace(",", "")) == 0) {
            AskAmt.value = 0;
        }
        else {
            //            AskAmt.value = parseFloat(AskPSF.value) * parseFloat(GPSF.value);
            var AA = parseFloat(AskPSFVal.replace(",", "")) * parseFloat(GPSFVal.replace(",", ""));
            AskAmt.value = AA.toFixed(2);
        }
    }
}
function checkTenure() {
    var Tenure = document.getElementById('<%=ddlTenure.ClientID %>');
    var ListholdExpired = document.getElementById('<%=txtListholdExpired.ClientID %>');
    if (Tenure.value == "2") {
        ListholdExpired.style.display = "inline";
        ListholdExpired.style.visibility = "visible";
    }
    else {
        ListholdExpired.style.display = "none";
        ListholdExpired.style.visibility = "hidden";
    }
}
function checkListType(chk, lt) {
    var now = new Date();
    if (lt == "SC") {
        var Amt = document.getElementById('<%=rfvtxtSCAmt.ClientID %>');
            var PSF = document.getElementById('<%=rfvtxtSCPSF.ClientID %>');
            var AskAmt = document.getElementById('<%=rfvtxtSCAskAmt.ClientID %>');
            var AskPSF = document.getElementById('<%=rfvtxtSCAskPSF.ClientID %>');
            var CreateDate = document.getElementById('<%=rfvtxtSCCreateDate.ClientID %>');
            var Required = document.getElementById('<%=lblSCRequired.ClientID %>');
            var txtAmt = document.getElementById('<%=txtSCAmt.ClientID %>');
            var txtPSF = document.getElementById('<%=txtSCPSF.ClientID %>');
            var txtAskAmt = document.getElementById('<%=txtSCAskAmt.ClientID %>');
            var txtAskPSF = document.getElementById('<%=txtSCAskPSF.ClientID %>');
            var txtCreateDate = document.getElementById('<%=txtSCCreateDate.ClientID %>');
        }
        else if (lt == "SR") {
            var Amt = document.getElementById('<%=rfvtxtSRAmt.ClientID %>');
        var PSF = document.getElementById('<%=rfvtxtSRPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=rfvtxtSRAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=rfvtxtSRAskPSF.ClientID %>');
        var CreateDate = document.getElementById('<%=rfvtxtSRCreateDate.ClientID %>');
        var Required = document.getElementById('<%=lblSRRequired.ClientID %>');
        var txtAmt = document.getElementById('<%=txtSRAmt.ClientID %>');
        var txtPSF = document.getElementById('<%=txtSRPSF.ClientID %>');
        var txtAskAmt = document.getElementById('<%=txtSRAskAmt.ClientID %>');
        var txtAskPSF = document.getElementById('<%=txtSRAskPSF.ClientID %>');
        var txtCreateDate = document.getElementById('<%=txtSRCreateDate.ClientID %>');
    }
    else if (lt == "SL") {
        var Amt = document.getElementById('<%=rfvtxtSLAmt.ClientID %>');
        var PSF = document.getElementById('<%=rfvtxtSLPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=rfvtxtSLAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=rfvtxtSLAskPSF.ClientID %>');
        var CreateDate = document.getElementById('<%=rfvtxtSLCreateDate.ClientID %>');
        var Required = document.getElementById('<%=lblSLRequired.ClientID %>');
        var txtAmt = document.getElementById('<%=txtSLAmt.ClientID %>');
        var txtPSF = document.getElementById('<%=txtSLPSF.ClientID %>');
        var txtAskAmt = document.getElementById('<%=txtSLAskAmt.ClientID %>');
        var txtAskPSF = document.getElementById('<%=txtSLAskPSF.ClientID %>');
        var txtCreateDate = document.getElementById('<%=txtSLCreateDate.ClientID %>');
    }
    else if (lt == "SI") {
        var Amt = document.getElementById('<%=rfvtxtSIAmt.ClientID %>');
        var PSF = document.getElementById('<%=rfvtxtSIPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=rfvtxtSIAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=rfvtxtSIAskPSF.ClientID %>');
        var CreateDate = document.getElementById('<%=rfvtxtSICreateDate.ClientID %>');
        var Required = document.getElementById('<%=lblSIRequired.ClientID %>');
        var txtAmt = document.getElementById('<%=txtSIAmt.ClientID %>');
        var txtPSF = document.getElementById('<%=txtSIPSF.ClientID %>');
        var txtAskAmt = document.getElementById('<%=txtSIAskAmt.ClientID %>');
        var txtAskPSF = document.getElementById('<%=txtSIAskPSF.ClientID %>');
        var txtCreateDate = document.getElementById('<%=txtSICreateDate.ClientID %>');
    }
    else if (lt == "RC") {
        var Amt = document.getElementById('<%=rfvtxtRCAmt.ClientID %>');
        var PSF = document.getElementById('<%=rfvtxtRCPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=rfvtxtRCAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=rfvtxtRCAskPSF.ClientID %>');
        var CreateDate = document.getElementById('<%=rfvtxtRCCreateDate.ClientID %>');
        var Required = document.getElementById('<%=lblRCRequired.ClientID %>');
        var txtAmt = document.getElementById('<%=txtRCAmt.ClientID %>');
        var txtPSF = document.getElementById('<%=txtRCPSF.ClientID %>');
        var txtAskAmt = document.getElementById('<%=txtRCAskAmt.ClientID %>');
        var txtAskPSF = document.getElementById('<%=txtRCAskPSF.ClientID %>');
        var txtCreateDate = document.getElementById('<%=txtRCCreateDate.ClientID %>');
    }
    else if (lt == "RR") {
        var Amt = document.getElementById('<%=rfvtxtRRAmt.ClientID %>');
        var PSF = document.getElementById('<%=rfvtxtRRPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=rfvtxtRRAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=rfvtxtRRAskPSF.ClientID %>');
        var CreateDate = document.getElementById('<%=rfvtxtRRCreateDate.ClientID %>');
        var Required = document.getElementById('<%=lblRRRequired.ClientID %>');
        var txtAmt = document.getElementById('<%=txtRRAmt.ClientID %>');
        var txtPSF = document.getElementById('<%=txtRRPSF.ClientID %>');
        var txtAskAmt = document.getElementById('<%=txtRRAskAmt.ClientID %>');
        var txtAskPSF = document.getElementById('<%=txtRRAskPSF.ClientID %>');
        var txtCreateDate = document.getElementById('<%=txtRRCreateDate.ClientID %>');
    }
    else if (lt == "RL") {
        var Amt = document.getElementById('<%=rfvtxtRLAmt.ClientID %>');
        var PSF = document.getElementById('<%=rfvtxtRLPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=rfvtxtRLAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=rfvtxtRLAskPSF.ClientID %>');
        var CreateDate = document.getElementById('<%=rfvtxtRLCreateDate.ClientID %>');
        var Required = document.getElementById('<%=lblRLRequired.ClientID %>');
        var txtAmt = document.getElementById('<%=txtRLAmt.ClientID %>');
        var txtPSF = document.getElementById('<%=txtRLPSF.ClientID %>');
        var txtAskAmt = document.getElementById('<%=txtRLAskAmt.ClientID %>');
        var txtAskPSF = document.getElementById('<%=txtRLAskPSF.ClientID %>');
        var txtCreateDate = document.getElementById('<%=txtRLCreateDate.ClientID %>');
    }
    else if (lt == "RI") {
        var Amt = document.getElementById('<%=rfvtxtRIAmt.ClientID %>');
        var PSF = document.getElementById('<%=rfvtxtRIPSF.ClientID %>');
        var AskAmt = document.getElementById('<%=rfvtxtRIAskAmt.ClientID %>');
        var AskPSF = document.getElementById('<%=rfvtxtRIAskPSF.ClientID %>');
        var CreateDate = document.getElementById('<%=rfvtxtRICreateDate.ClientID %>');
        var Required = document.getElementById('<%=lblRIRequired.ClientID %>');
        var txtAmt = document.getElementById('<%=txtRIAmt.ClientID %>');
        var txtPSF = document.getElementById('<%=txtRIPSF.ClientID %>');
        var txtAskAmt = document.getElementById('<%=txtRIAskAmt.ClientID %>');
        var txtAskPSF = document.getElementById('<%=txtRIAskPSF.ClientID %>');
        var txtCreateDate = document.getElementById('<%=txtRICreateDate.ClientID %>');
    }
    if (chk.checked == true) {
        ValidatorEnable(Amt, true);
        ValidatorEnable(PSF, true);
        ValidatorEnable(AskAmt, true);
        ValidatorEnable(AskPSF, true);
        ValidatorEnable(CreateDate, true);
        Required.style.display = "inline";
        Required.style.visibility = "visible";
        if (txtCreateDate.value == "") {
            txtCreateDate.value = now.format("dd-MMM-yyyy");
        }
    }
    else {
        ValidatorEnable(Amt, false);
        ValidatorEnable(PSF, false);
        ValidatorEnable(AskAmt, false);
        ValidatorEnable(AskPSF, false);
        ValidatorEnable(CreateDate, false);
        Required.style.display = "none";
        Required.style.visibility = "hidden";
        txtAmt.value = '';
        txtPSF.value = '';
        txtAskAmt.value = '';
        txtAskPSF.value = '';
        txtCreateDate.value = '';
    }
}


    </script>
</asp:Content>
